<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ include file="header.jsp" %>
<%@ page import="java.util.*" %>  
<%@page import="java.util.Enumeration"%><html>
<%@ page import="au.edu.unsw.editingtool.global.GlobalConstant" %>
<center>
<fieldset>
  <legend>Instructions</legend>
<h1>
QueryString = <%=request.getQueryString() %>
</h1>
<%  			
if (request.getAttribute(GlobalConstant.responseType) == GlobalConstant.typeError) 
{
	if(request.getAttribute(GlobalConstant.responseControl)== GlobalConstant.cmdLogin)
	{
%>
<font color="red">Error! Please reenter your staff or student number and Unipass below to login.</font>
<% 
	} 
	else 
	{
%>
<font color="red">Error! Session is expired or you have not been authenticated yet! Please reenter your staff or student number and Unipass below to login.</font>
<%
	}
}
else 
{
	if (request.getAttribute(GlobalConstant.responseControl) == GlobalConstant.cmdLogout)
	{
%>
<font color="black">Logout is successfull!</font>
<% 		
	}
	else
	{
%>
<font color="black">Please enter your staff or student number and Unipass below to login</font>
<% 
	}
}
%>
</fieldset>
<br/>
<form action="/EditingTool/LoginManager?<%if(request.getQueryString()!=null){%><%=request.getQueryString() %><%} %>" method="post">
 <table border="0">
  <tbody><tr><td>Staff/Student ID:</td><td> <input type="text" size="20" name="username"/></td></tr>
  <tr><td>UniPass:</td><td> <input type="password" size="20" name="password"/></td></tr>
 </tbody></table>
 <input type="submit" value="Login" />
</form>
<p>
</center>
<%@ include file="footer.jsp" %>